home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6431 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.infi.net!usenet
  2. From: nngis@norfolk.infi.net (Greg DiGiorgio)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Linking Borland and Microsoft .obj
  5. Date: 24 Feb 1996 20:31:14 GMT
  6. Organization: Customer of InfiNet
  7. Message-ID: <4gnsii$i41@nw002.infi.net>
  8. References: <Dn94E7.A0E.0.bloor@torfree.net>
  9. NNTP-Posting-Host: h-talisman.norfolk.infi.net
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.99.3
  12.  
  13. In article <Dn94E7.A0E.0.bloor@torfree.net>, af798@torfree.net says...
  14. >
  15. >I have problems with linking a MS object file with Borland program using 
  16. >Borland C/C++ IDE.
  17. >
  18. >How to tell IDE linker to take MS library e.g. MLIBCE.LIB. Including it 
  19. >in the project does not work.
  20. >
  21. >Using command line TLINK causes problems, too. Reports errors: Undefined 
  22. >symbol __end, __data.
  23.  
  24. You are playing with fire trying to do this. It's not only that .OBJ 
  25. formats are incompatible, but so are internal function names, system 
  26. variables, and memory management.
  27.  
  28. I have done something similar to this using Clipper and Turbo-C. Well, 
  29. Turbo-C defined a couple of symbols like you refer to above (_end, _data) 
  30. and the Clipper linker complained with warning messages. The programs ran 
  31. fine however because I knew that the unresolved symbols in my Turbo-C obj 
  32. files would never be called (NCAL). But everytime I recompiled and linked 
  33. I had to ignore those warnings (whihc I'd rather not do). I alos managed 
  34. to get Turbo-C to work with Realia COBOL, but had the same unresolved 
  35. symbol msgs.
  36.  
  37. But you have to put up with unresolved error/warning msgs if you plan to 
  38. do mixed language/manufacturer programming.
  39.  
  40. Sorry, I wish I had better news, but I don't.
  41.  
  42. Hope this helps,
  43. Greg DiGiorgio
  44.  
  45.